package callback;

/**
 * @Author: linKe
 * @Date: 2022/1/14 22:46
 * @FileName: AppTest
 * @version: 1.0
 * @Description: 回调函数测试类
 */
public class AppTest {
    public static void main(String[] args) {
        // 简单任务对象
        SimpleTask task = new SimpleTask();
        task.executeWith(() -> {
            System.out.println("callback executed");
        });
        // SimpleTask task executed.    先执行task任务
        // callback executed            再执行匿名回调任务
    }
}
